﻿using System.Windows;
using Avalonia.Controls.Primitives;
using KinonekoSoftware.Foundation.UI.Controls.Selectors;

namespace KinonekoSoftware.ArkSpark.Controls
{
    public class DocumentPreviewer : ForestListBox
    {
        
        protected override TemplatedControl CreateContainerForItemOverride(object item, int index, object recycleKey)
        {
            return new DocumentEditorPreviewItem();
        }

        protected override bool NeedsContainerOverride(object item, int index, out object recycleKey)
        {
            recycleKey = null;
            return item is DocumentEditorPreviewItem;
        }

    }
}